package biz.datalk.industrialland.common.encrypt.sm;

import biz.datalk.industrialland.common.exception.ApplicationException;
import biz.datalk.industrialland.common.result.UnifyResultCode;

/**
 * @author tarofang@163.com
 * @date 2022-06-28
 */
public class GMEncryptException extends ApplicationException {
    private static final long serialVersionUID = 1L;

    public static final String MESSAGE = "GM加解密异常";

    public GMEncryptException() {
        super(MESSAGE);
    }

    public GMEncryptException(String message) {
        super(MESSAGE);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_GM;
    }

    public GMEncryptException(String code, String message) {
        super(message);
        this.code = code;
    }

    public GMEncryptException(String message, Throwable cause) {
        super(message, cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_GM;
    }

    public GMEncryptException(String code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }

    public GMEncryptException(Throwable cause) {
        super(cause);
        this.code = UnifyResultCode.ENCRYPTION_ERROR_GM;
    }

}
